home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / winter_challenge.swf / scripts / DefineSprite_333 / frame_1 / PlaceObject2_331_1 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2011-08-19  |  499b  |  23 lines

  1. onClipEvent(enterFrame){
  2.    if(counterFlag == 1)
  3.    {
  4.       delayCounter++;
  5.       if(delayCounter >= 24)
  6.       {
  7.          counterFlag = 0;
  8.          delayCounter = 0;
  9.       }
  10.    }
  11.    if(this.hitTest(_root.ATVclip) && counterFlag != 1)
  12.    {
  13.       _root.engineSound.myAction = "brk";
  14.       _root.ATVclip.w *= -1;
  15.       if(_root.redTire_cheat == 0)
  16.       {
  17.          _root.crash_metall.start(0,1);
  18.          _root.ATVclip.reduceShields(150,25);
  19.       }
  20.       counterFlag = 1;
  21.    }
  22. }
  23.